package com.moresoft.test;

import org.junit.runner.RunWith;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import com.moresoft.service.DubboService;

/**
 * @description
 * @author Joseph_Mok
 * @date 2016年6月2日下午7:10:54
 */

@RunWith(SpringJUnit4ClassRunner.class)
public class Client {

	public static void main(String[] args) {
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("conf/dubbo-consumer.xml");
		DubboService demoService = (DubboService) context.getBean("dubboService"); // 获取远程服务代理
		demoService.sayHello("Joseph");
	}
}
